<?php
//加密方式：php源码混淆类加密。免费版地址:http://www.zhaoyuanma.com/phpjm.html 免费版不能解密,可以使用VIP版本。

//发现了time,请自行验证这套程序是否有时间限制.
//此程序由【找源码】http://Www.ZhaoYuanMa.Com (免费版）在线逆向还原，QQ：7530782 
?>
﻿<?php
ob_start(); if(isset($_SERVER['HTTP_APPVERSION'])){ include "./saesiteinfo.php"; }else{ if(!file_exists("./install/install.lock")){ header('location:./install'); exit; }else{ include "./siteinfo.php"; } } $localhost=mysql_connect($sqlhost,$sqluser,$sqlpass)or die("无法连接服务器"); mysql_select_db($sqldata,$localhost); ?>
<html>
<head>


</style><head><body>
<meta name="baidu-site-verification" content="gFRNXpjoF8" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<p>
  <style type="text/css">
<!--
<!--html5 speedup-->
<style>
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track-piece{background-color:#d2d2d2}
::-webkit-scrollbar-thumb{background:#888;}
::-webkit-scrollbar-thumb:hover{background-color:#999;}
#grid {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -11;
margin: 0;
padding: 0;
overflow: hidden;
background: url() repeat;
}
body,td,th {
	font-family: Georgia, Times New Roman, Times, serif;
}
a {
	font-family: Courier New, Courier, monospace;
	color: #6600FF;
}
a:visited {
	color: #000000;
	text-decoration: none;
}
a:hover {
	color: #000000;
	text-decoration: underline;
}
a:active {
	color: #000000;
	text-decoration: none;
}
a:link {
	color: #000000;
	text-decoration: none;
}
.STYLE30 {color: #000000}
.STYLE32 {font-size: small}
.STYLE33 {color: #000000; font-size: small; }
</style>
<div class="container">
  <p>
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script> 
    <script src="http://lib.sinaapp.com/js/bootstrap/2.3.1/js/bootstrap.min.js"></script>
    <script src="http://cdnjs.bootcss.com/ajax/libs/jquery-backstretch/2.0.3/jquery.backstretch.min.js"></script>
    <script>



	// Create an array of images that you'd like to use
var images = ["http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-017.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409624128806.jpg","http://img.ivsky.com/img/bizhi/pic/201304/26/caise_guangban-014.jpg","http://b.zol-img.com.cn/desk/bizhi/image/5/1440x900/1409021422417.jpg"];
	
	// A little script for preloading all of the images
	// It's not necessary, but generally a good idea
	$(images).each(function(){
	   $('<img/>')[0].src = this; 
	});
	
	// The index variable will keep track of which image is currently showing
	var index = 0;
	
	// Call backstretch for the first time,
	// In this case, I'm settings speed of 500ms for a fadeIn effect between images.
	$.backstretch(images[index], {speed: 1000});
	
	// Set an interval that increments the index and sets the new image
	// Note: The fadeIn speed set above will be inherited
	setInterval(function() {
		index = (index >= images.length - 1) ? 0 : index + 1;
		$.backstretch(images[index]);
	}, 10000);




function down(id)
{
	$("#msg").html('Download starting ,Please Wait.');
	$("#msgbox").fadeIn();
	htmlobj=$.ajax({url:"d.php?act=down&id="+id,async:false});
	if(htmlobj.responseText!="error")
	{
	location=htmlobj.responseText;
	$("#msgbox").fadeOut();
	
	}
	else
	{
		$("#msg").html("Download error ,Please try again.");
		$("#msgbox").fadeIn();
		
	}
}

 // popover demo
    $("a[data-toggle=popover]")
      .popover()
      .click(function(e) {


        e.preventDefault()
      })
  </script>
    </marquee>?>

<meta content="width=device-width,user-scalable=no" name="viewport">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>激活账号 - <?php echo $sitename; ?></title>
<link rel="stylesheet" type="text/css" href="css/register.css"/>
</head>
<body>
<div class='signup_container'>
    <h1 class='signup_title'><?php echo $sitename; ?>小提示!</h1>
<p><font size="4">
<?php
$id=is_numeric($_GET['id'])?$_GET['id']:0; if($_POST['do']=='jh'){ if($user=$_POST['user']){ $mysql=mysql_query("SELECT * FROM user WHERE user='$user'"); if($sql=mysql_fetch_array($mysql)){ $id=$sql[id]; } } if(!$id){ echo"用户不存在！"; }else{ $jhm=$_POST['jhm']; $mysql=mysql_query("select * from km where km = '$jhm' and isuse=0"); $yz_km=@mysql_num_rows($yz_result); if($row=mysql_fetch_array($mysql)){ $now=date("Y-m-d H:i:s"); $start=date("Y-m-d"); $endtime=date("Y-m-d",time()+3600*24*30*$row[ms]); mysql_query("update user set start='$start',end='$endtime',vip=1 where id='$id'"); mysql_query("update km set isuse=1,uid='$id',usetime='$now' where km='$jhm'"); echo "激活成功,请重新登陆！"; echo '<script language=\'javascript\'>alert(\'激活成功,请重新登陆！\'); window.location.href="index.php";</script>'; }else{ echo"激活码不存在，或者已使用！"; } } } echo"<hr><form action='?id=$id' method='post'><input type='hidden' name='do' value='jh'>"; if(!$id){ echo"用户名:<input type='text' name='user'><br><br>"; } echo"激活码:<input type='text' name='jhm'><br><br>"; echo"<input type='submit' value='确认激活'></form>"; ?>
</div>
</body>
</html>